<%@ page language="java"
	import="java.util.*,cn.edu.scau.cmi.tangqingning.model.Student"
	pageEncoding="utf-8"%>
<%@ page import="cn.edu.scau.cmi.tangqingning.dao.impl.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link href="${pageContext.request.contextPath}/mycss/button.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/mycss/search.css"
	rel="stylesheet">
<title>用户信息</title>
<style type="text/css">
#divgd {
	width: 1000px;
	height: 300px;
	OVERFLOW-Y: auto;
	OVERFLOW-X: hidden;
}

#divgd::-webkit-scrollbar {
	width: 10px;
	background-color: #575757
}

#divgd::-webkit-scrollbar-thumb {
	background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
	border-radius: 10px;
}

#divgd::-webkit-scrollbar-thumb:hover {
	background-color: #A5281B;
}

#divgd::-webkit-scrollbar-thumb:active {
	border: 0;
	border-radius: 0;
	background-color: #A5281B
}

#divgd::-webkit-scrollbar-thumb:window-inactive {
	background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
}
</style>
</head>
<body>
	<form action="searchById" method="post">
		<font color="red"><strong>搜索</strong></font>
		<table class="searchTable">
			<tr>
				<td><input class="searchInput" name="searchId" maxlength="12"
					placeholder="学生学号..."></td>
				<td>
					<button type="submit" class="searchButton"></button>
				</td>
			</tr>
		</table>
	</form>
	<table class="table table-hover table-condensed table-responsive" style="width:1000px">
		<tr>
			<td align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>学号</strong></td>
			<td align="center"><strong>姓名</strong></td>
			<td align="center"><strong>性别</strong></td>
			<td align="center"><strong>年龄</strong></td>
			<td align="center"><strong>电话</strong></td>
			<td align="center"><strong>系别</strong></td>
			<td align="center"><strong>地址</strong></td>
			<td align="center"><strong>组别(0为空)</strong></td>
			<td align="right">&nbsp;&nbsp;&nbsp;&nbsp;<strong>执行操作</strong>
			</td>
		</tr>
	</table>
	<div id="divgd">
		<table class="table table-hover table-condensed table-responsive">
			<c:forEach items="${list}" var="student">
				<tr>
					<td><c:out value="${student.stId}" /></td>
					<td><c:out value="${student.stName}" /></td>
					<td><c:out value="${student.stSex}" /></td>
					<td><c:out value="${student.stAge}" /></td>
					<td><c:out value="${student.stTel}" /></td>
					<td><c:out value="${student.stDept}" /></td>
					<td><c:out value="${student.stAddress}" /></td>
					<td><c:out value="${student.stGroup}" /></td>
					<td><a href="pre?method=updateStudent&stId=${student.stId}"
						class="button red">更新</a> <a href="stdelete?stId=${student.stId}"
						class="button gray">删除</a></td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>